<?php
// $Id$

/**
 * Controller_Admin_Pointer 控制器
 */
class Controller_Admin_Pointer extends Controller_Abstract
{

	function actionsearch()
	{
		
	}
	function actionlist()
	{
		$this->union_table = Product::meta();
		$this->lists(array('type'=>'1'));
	}
	
	function actionadd()
	{
	$url = url($this->_context->controller_name.'/'.$this->_context->action_name);
	$Form  = new Form_Productadd($url,1);
	$auto = new helper_autoinsert(Product::meta());
	$result = $auto->add($Form,'id',$_GET);
	if ($this->_context->isGET())
	{
		$this->_view['form'] = $result;
	}else
	{
		return call_user_func_array(array($this,$auto->status),$result);
	}
	}
}


